<?php $this->content->begin()?>
<div class="content_Title">
	<span class="cat-title white">Sản phẩm mới nhất</span>
</div>
<div class="content-container">
	<?php $i = 1;?>
    <?php foreach($products as $p):?>
	<div class="product">
		<img src="<?php echo $p->image?>" class="img-product"/>
		<p class="product-name">
			<a href="<?php echo $this->url->action("detail", "Index", "Product", array($p->id))?>"><?php echo $p->name?></a>
		</p>
		<p class="product-description"><?php echo $p->headline?></p>
		<p class="product-price"><?php echo number_format($p->price, 0, ',', '.')?> VNĐ</p>
	</div>
	<?php
	if ($i == 2)
	{
	?>
	<div style="clear: both;"></div>
	<?php 
		$i = 1;
	}
	else{
		$i++;
	}
	?>
    <?php endforeach; ?>
</div>
<?php $this->content->end()?>